# coding=utf-8
# 全世界最帅的帅哥
from ysgg1_club_comment.modules.base_model import BaseModel, db
from sqlalchemy.dialects.mysql import TINYINT


class SubjectMultiple(BaseModel):
    __tablename__ = 'subject_multiple'

    subject_id = db.Column(db.BIGINT, comment="题目id")
    option_type = db.Column(TINYINT, comment="选项类型")
    option_content = db.Column(db.String(64), comment="选项内容")
    is_correct = db.Column(db.Boolean, comment="是否正确")

    def __repr__(self):
        return f"<SubjectMultiple {self.subject_id}>"